import request from "@/utils/request";

// 获取患者列表
export function getPatientsByDoctorId(data) {
  return request({
    url: `/api/Patient/list`,
    method: "post",
    data,
  });
}

// 删除患者（解除医患关系）
export function removePatient(patientId) {
  return request({
    url: `/api/Patient/${patientId}`,
    method: "delete",
  });
}

// 新增患者
export function addPatient(data) {
  return request({
    url: "/api/Patient/add",
    method: "post",
    data,
  });
}

// 更新患者信息
export function updatePatient(data) {
  return request({
    url: "/api/Patient/update",
    method: "post",
    data,
  });
}
